//
//  ServiceTableViewCell.m
//  HondaPro_2
//
//  Created by ht on 13-7-4.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import "ServiceTableViewCell.h"

@implementation ServiceTableViewCell

@synthesize cellLabelOne = _cellLabelOne;
@synthesize cellLabelTwo = _cellLabelTwo;
@synthesize cellLabelThree = _cellLabelThree;
@synthesize cellLabelFour = _cellLabelFour;
@synthesize cellLabelFive = _cellLabelFive;
@synthesize cellLabelSix = _cellLabelSix;
@synthesize cellLabelSeven = _cellLabelSeven;
@synthesize cellLabelEight = _cellLabelEight;
@synthesize cellLabelNine = _cellLabelNine;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _cellLabelOne = [[UILabel alloc]init];
        [_cellLabelOne setBackgroundColor:[UIColor clearColor]];
        [_cellLabelOne setTextColor:[UIColor grayColor]];
        _cellLabelOne.font = [UIFont fontWithName:@"ArialMT" size:13];
        [_cellLabelOne setTextAlignment:NSTextAlignmentCenter];
        [self.contentView addSubview:_cellLabelOne];
        
        _cellLabelTwo = [[UILabel alloc]init];
        [_cellLabelTwo setBackgroundColor:[UIColor clearColor]];
        [_cellLabelTwo setTextColor:[UIColor grayColor]];
        _cellLabelTwo.font = [UIFont fontWithName:@"ArialMT" size:15];
        [_cellLabelTwo setTextAlignment:NSTextAlignmentCenter];
        [self.contentView addSubview:_cellLabelTwo];
        
//        _cellLabelThree = [[UILabel alloc]initWithFrame:CGRectMake(205, 0, 70, 45)];
//        [_cellLabelThree setBackgroundColor:[UIColor clearColor]];
//        [_cellLabelThree setTextColor:[UIColor grayColor]];
//        _cellLabelThree.font = [UIFont fontWithName:@"ArialMT" size:15];
//        [_cellLabelThree setTextAlignment:NSTextAlignmentCenter];
//        [self.contentView addSubview:_cellLabelThree];
        
        _cellLabelFour = [[UILabel alloc]init];
        [_cellLabelFour setBackgroundColor:[UIColor clearColor]];
        [_cellLabelFour setTextColor:[UIColor grayColor]];
        _cellLabelFour.font = [UIFont fontWithName:@"ArialMT" size:15];
        [_cellLabelFour setTextAlignment:NSTextAlignmentCenter];
        [self.contentView addSubview:_cellLabelFour];
        
        _cellLabelFive = [[UILabel alloc]init];
        [_cellLabelFive setBackgroundColor:[UIColor clearColor]];
        [_cellLabelFive setTextColor:[UIColor grayColor]];
        _cellLabelFive.font = [UIFont fontWithName:@"ArialMT" size:13];
        [_cellLabelFive setTextAlignment:NSTextAlignmentCenter];
        _cellLabelFive.lineBreakMode = NSLineBreakByWordWrapping;
        _cellLabelFive.numberOfLines = 0;
        [self.contentView addSubview:_cellLabelFive];
        
        _cellLabelSix = [[UILabel alloc]init];
        [_cellLabelSix setBackgroundColor:[UIColor clearColor]];
        [_cellLabelSix setTextColor:[UIColor grayColor]];
        _cellLabelSix.font = [UIFont fontWithName:@"ArialMT" size:15];
        [_cellLabelSix setTextAlignment:NSTextAlignmentCenter];
        [self.contentView addSubview:_cellLabelSix];
        
//        _cellLabelSeven = [[UILabel alloc]initWithFrame:CGRectMake(580, 0, 115, 45)];
//        [_cellLabelSeven setBackgroundColor:[UIColor clearColor]];
//        [_cellLabelSeven setTextColor:[UIColor grayColor]];
//        _cellLabelSeven.font = [UIFont fontWithName:@"ArialMT" size:13];
//        [_cellLabelSeven setTextAlignment:NSTextAlignmentCenter];
//        _cellLabelSeven.lineBreakMode = NSLineBreakByWordWrapping;
//        _cellLabelSeven.numberOfLines = 0;
//        [self.contentView addSubview:_cellLabelSeven];
        
        _cellLabelEight = [[UILabel alloc]init];
        [_cellLabelEight setBackgroundColor:[UIColor clearColor]];
        [_cellLabelEight setTextColor:[UIColor grayColor]];
        _cellLabelEight.font = [UIFont fontWithName:@"ArialMT" size:13];
        [_cellLabelEight setTextAlignment:NSTextAlignmentCenter];
        _cellLabelEight.lineBreakMode = NSLineBreakByWordWrapping;
        _cellLabelEight.numberOfLines = 0;
        [self.contentView addSubview:_cellLabelEight];
        
        _cellLabelNine = [[UILabel alloc]init];
        [_cellLabelNine setBackgroundColor:[UIColor clearColor]];
        [_cellLabelNine setTextColor:[UIColor grayColor]];
        _cellLabelNine.font = [UIFont fontWithName:@"ArialMT" size:13];
        [_cellLabelNine setTextAlignment:NSTextAlignmentCenter];
        _cellLabelNine.lineBreakMode = NSLineBreakByWordWrapping;
        _cellLabelNine.numberOfLines = 0;
        [self.contentView addSubview:_cellLabelNine];

    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat w=self.bounds.size.width/7;
    _cellLabelOne.frame=CGRectMake(0, 0, w, 45);
    _cellLabelTwo.frame=CGRectMake(w, 0, w, 45);
    _cellLabelFour.frame=CGRectMake(2*w, 0, w, 45);
    _cellLabelFive.frame=CGRectMake(3*w, 0, w, 45);
    _cellLabelSix.frame=CGRectMake(4*w, 0, w, 45);
    _cellLabelEight.frame=CGRectMake(5*w, 0, w, 45);
    _cellLabelNine.frame=CGRectMake(6*w, 0, w, 45);
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
